{extend name="$base" /}
{block name="resources"}
<link rel="stylesheet" type="text/css" href="WAP_CSS/member_balance.css">
{/block}
{block name="main"}
{php}
$memberMinLevelList = api("System.Member.memberMinLevelApply");

//trace($memberMinLevelList['data'],"debug");

{/php}

<div>

	<div class="app_min" style="padding: 10px;box-sizing: border-box">
		{foreach name="$memberMinLevelList['data']" item="vo"}
		<div style="margin-bottom: 5px;background-color: white;padding: 0px 5px;border-radius: 5px">
			<div style="display: flex">
				<div style="flex: 1">
					{$vo['min_level_name']}
				</div>
				<div style="flex: 0 0 100px;text-align: right">
					{if condition="$vo['status'] eq -1"}
						<div>已经达成</div>
					{/if}
					{if condition="$vo['status'] eq 0"}
						<div>当前级别</div>
					{/if}

					{if condition="$vo['status'] eq 1"}
						<div>
							<a href="{:__URL('APP_MAIN/member/sendMessage')}">立即申请</a>
						</div>
					{/if}

					{if condition="$vo['status'] eq 2"}
						<div>尚未达成</div>
					{/if}
				</div>
			</div>
			<div>
				<div style="color: #cccccc;margin: 5px">
					{$vo['min_desc']}
				</div>
			</div>
		</div>
		{/foreach}
	</div>

</div>
{/block}
{block name="footer"}{/block}

{block name="script"}
<script type="text/javascript">

</script>
{/block}